#!/bin/bash

# Recompiles the templates, then compiles the whole app.

clear
echo "Compiling templates:"

echo "  dkpoints.ui.templates.RaidMemberList"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat ./dkpoints/ui/templates/raid_member_list_templates.js ./templates/raid_member_list.soy

echo "  labs.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat ./dkpoints/labs/labs_templates.js ./templates/labs.soy

echo "  menu.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat ./dkpoints/menu/menu_templates.js ./templates/menu.soy

echo "  standings.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat ./dkpoints/standings/standings_templates.js ./templates/standings.soy

echo "  auth.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/auth/auth_templates.js templates/auth.soy

echo "  errors.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/errors/errors_templates.js templates/errors.soy

echo "  status.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/status/status_templates.js templates/status.soy

echo "  raid.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/raid/raid_templates.js templates/raid.soy

echo "  tests.soy"
java -jar /devel/clbin/SoyToJsSrcCompiler.jar --codeStyle CONCAT  --shouldGenerateJsdoc --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/tests/tests_templates.js templates/tests.soy

./compile